package com.lujianfei.excel2json.mvp;

import java.io.File;

public class PresenterImpl implements MainContract.Presenter{

	MainContract.View view;
	MainContract.Model model;
	public PresenterImpl(MainContract.View view) {
		this.view = view;
		this.model = new MainModel();
	}
	@Override
	public void excel2json(File selectedFile) {
		String json = this.model.excel2json(selectedFile);
		view.setOutputJson(json);
	}
	
}
